package _3ChapterThree._7ChangeUnidirectionalAssociationToBidirectional.step2;

public class Order {
    private Customer _customer;

    public Customer get_customer() {
        return _customer;
    }

    public void set_customer(Customer arg) {
        if (_customer != null) {
            _customer.friendOrders().remove(this);
        }
        _customer = arg;
        if (_customer != null) {
            _customer.addOrder(this);
        }
    }
}
